import { Http } from '@/common/api'

export const listUrl = '/srm/invoice/supplier/page'

/**
 * 根据ID获取发票详情
 * @param id
 * @return {*|Promise}
 */
export const apiGetInvoice = async (id) => Http.get(`/srm/invoice/supplier/findById?id=${id}`)

/**
 * 邮寄发票
 * @param ids
 * @return {*|Promise}
 */
export const apiPostInvoiceMail = async (params) => Http.post('/srm/invoice/mail', params)

/**
 * 开票
 * @param ids
 * @return {*|Promise}
 */
export const apiPostInvoiceinvoicing = async (params) => Http.post('/srm/invoice/invoicing', params)
